package designpattern.command;

/**
 * TODO:类描述
 *
 * @className: TurnOffCommand
 * @packageName: designpattern.command
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/21 20:00
 */
public class TurnOffCommand implements Command{
    private TV mytv;
    public TurnOffCommand(TV tv){
        this.mytv = tv;
    }
    @Override
    public void execute() {
        mytv.turnOff();
    }
}
